package com.example.fegin;

import com.example.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value ="user-server",path = "/user")
@Component
public interface UserFeginServie {
    @GetMapping( "/queryuserbyId")
    public User queryuserbyId(@RequestParam("userId") Integer userId);
}
